﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using StatelyCompiler;

namespace ObviousCode.Stately.Compiler.Parser
{
    public class InvalidTokenException : Exception
    {
        public InvalidTokenException(Token token)
            : base("Invalid token {0} at line {1}, column {2}".F(token.Kind, token.LineNumber, token.ColumnNumber))
        {
            InvalidToken = token;
        }

        public Token InvalidToken { get; private set; }
    }
}
